<?php

ini_set('memory_limit', -1);
error_reporting(E_ERROR);
define('FROM_DB_MYSQL_HOST', '127.0.0.1');
define('FROM_DB_MYSQL_USER', 'root');
define('FROM_DB_MYSQL_PASS', 'china@888');
define('FROM_DB_MYSQL_DBNAME', 'dangdang_book');
define('FROM_DB_MYSQL_PORT', 3306);
define('FROM_DB_MYSQL_CHARSET', 'UTF8');

define('SEND_ERROR_SMS', true);
define('SEND_ERROR_MOBILE', '15810169732');
define('PHPCMS_SMS_UID', '157184');
define('PHPCMS_SMS_PID', '2851');
define('PHPCMS_SMS_PASSWD', '260d3dee3624bfe966e96dc1b84ff451');
define('ERROR_EXIT', false); //遇到error是否退出

require_ONCE dirname(__FILE__) . '/KingPHP.php';


$d = send_email('smtp.exmail.qq.com', 'help@tuokong8.com', 'help@tuokong8.com', 'help@tuokong8.com', 'tuokong@123', $title = '标题', $html = '邮件内容', $to = array('290028888@qq.com'));
var_dump($d);
die();

$e = spider::fromBaidu('ixwebhosting');
$urllist = $e['tablelink'];
spider::makeSQL(dirname(__FILE__) . '/baidu1.sql', 'baidu', 'ixwebhosting', $urllist);
die();

/*
  birth	19890822	14
  from	2	6
  index	0	7
  phone	15810169732	17
 */



//
die();
$query = "select count(*) as t ,zhuanye,danwei from wanfang where zhuanye!='' AND danwei!='' group by zhuanye,danwei having t>200 order by t desc";
//Tools_discuz_discuz_makeForumList
$list = db_select($query);

foreach ($list as $k => $v) {
    $arrInsertCategory[0][$v['zhuanye']][] = $v['danwei'];
}

var_dump($arrInsertCategory);
//die();

Tools_discuz_discuz_makeForumList($arrInsertCategory, $arrSeoKeyWords = array('论文下载', 'PDF/DOC格式论文下载'), $prefix = 'd1lw_', $t = false);

//echo transLongStringFromBaidu('呵呵');
?>